package com.mallorcamaus.productlist.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.view.View.OnClickListener;


public class CategoryListActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.categorylist);
        
        ImageView hotelImg = (ImageView)findViewById(R.id.imageViewHotel); 
        hotelImg.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent hotelIntent = new Intent(v.getContext(), HotelListActivity.class);
				startActivity(hotelIntent);
			}
		});
        
        ImageView eventsImg = (ImageView)findViewById(R.id.imageViewEvents); 
        eventsImg.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent eventIntent = new Intent(v.getContext(), EventListActivity.class);
				startActivity(eventIntent);
			}
		});
        
        
        /* dummy fur hochzeiten, da gibts noch kein json */
        
        ImageView restaurantsImg = (ImageView)findViewById(R.id.imageViewRestaurants); 
        restaurantsImg.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent restaurantsIntent = new Intent(v.getContext(), RestaurantListActivity.class);
				startActivity(restaurantsIntent);
			}
		});
        
        ImageView yachtenImg = (ImageView)findViewById(R.id.imageViewYachten); 
        yachtenImg.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent yachtenIntent = new Intent(v.getContext(), YachtenListActivity.class);
				startActivity(yachtenIntent);
			}
		});
    }
}